package clienteTeste;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class Main {

	public static void main(String[] args) throws MalformedURLException, RemoteException, NotBoundException, ClassNotFoundException {
		Mensageiro gerente = (Mensageiro) Naming.lookup("msg_katyusco");
		
		System.out.println(gerente.hello(" Vai trabalha "));
		gerente.comunica("SELECT * FROM usuarios");
		
	}

}
